package ch4oopexer1;

public class DriverTest {
    public static void main(String[] args) {
        Driver driver = new Driver("黄威");
        System.out.println("******开飞机******");
        Plane plane = new Plane(3000,100);
        driver.drive(plane);
        System.out.println("******开坦克*****");
        Tank tank = new Tank(220,60);
        driver.drive(tank);
        System.out.println("******开轮船*****");
        Ship ship = new Ship(1000,2000,180);
        driver.drive(ship);
        System.out.println("******开拖拉机*****");
        Encryption encryption = new Encryption(5000,3000);
        driver.drive(encryption);
        System.out.println("******开汽车*****");
        Car car = new Car(5,2.0);
        driver.drive(car);



    }
}
